<?php
    if (!defined('THINK_PATH')) exit();
    $array=array(    			
		//* 模板相关配置 */
		'TMPL_PARSE_STRING' => array(
			'__INS__' => __ROOT__ . '/Public/Ins',
			'__STATIC__' => __ROOT__ . '/Public/Static',
			'__ADDONS__' => __ROOT__ . '/Public/' . MODULE_NAME . '/Addons',
			'__IMG__'    => __ROOT__ . '/Public/' . MODULE_NAME . '/images',
			'__CSS__'    => __ROOT__ . '/Public/' . MODULE_NAME . '/css',
			'__JS__'     => __ROOT__ . '/Public/' . MODULE_NAME . '/js',
		),
		'TMPL_NO_HAVE_AUTH'=>APP_PATH.MODULE_NAME.'/View/Public/no_have_auth.html',	
		'EMP_PIC_PATH'=>'Uploads/emp_pic/',
		'TEMPLETE_PATH'=>'./Uploads/Templete',	
	    		  
		 // 文件上传相关配置 
		'CHUNK_UPLOAD'=>true,
	    'DOWNLOAD_UPLOAD' => array(
	        'mimes'    => '', //允许上传的文件MiMe类型
	        'maxSize'  => 0, //上传的文件大小限制 (0-不做限制)
	        'autoSub'  => true, //自动子目录保存文件
	        'subName'  =>  array('date','Y-m'), //子目录创建方式，[0]-函数名，[1]-参数，多个参数使用数组
	        'rootPath' => './Uploads/Download/', //保存根路径
	        'savePath' => '', //保存路径
	        'saveName' => array('uniqid', ''), //上传文件命名规则，[0]-函数名，[1]-参数，多个参数使用数组
	        'saveExt'  => '', //文件保存后缀，空则使用原后缀
	        'replace'  => false, //存在同名是否覆盖
	        'hash'     => true, //是否生成hash编码
	        'callback' => false, //检测文件是否存在回调函数，如果存在返回文件信息数组
	    ), 
	    
	    //下载模型上传配置（文件上传类配置）
		'UPLOAD_FILE_EXT'=>'ppt,pptx,xls,xlsx,jpg,gif,png,jpeg,zip,rar,tar,gz,7z,doc,docx,txt,pdf', //允许上传的文件后缀
		'SYSTEM_CONFIG'=>'基本设置,安全设置,微信设置,记账-收入,记账-支出,',
        'LDAP_LOGIN'=>true,
        //'LDAP_SERVER'=>"g-town.com.cn",
        'LDAP_SERVER'=>"192.168.1.151",
        'LDAP_PORT'=>'389',
        'LDAP_USER'=>"uid=uid,cn=users,dc=laxdn,dc=com,dc=cn",
        'LDAP_PWD'=>'',
        'REPORTCONF'=>array
        (
            'loginApi'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/Public/synlogin?',
            'brandrank'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/BrandRank/index/',
            'bptrend'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/BPtrend/index/',
            'stickstockreport'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/StickStockReport/index/',
            'brandtrends'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/BrandTrends/index/',
            'classic2'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/Classic2/index/',
            'brandreport'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/BrandReport/index/',
            'itemsearch'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/ItemSearch/index/',
            'classic1'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/Classic1/index/',
            'pmanagertrendsbyline'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/PmanagerTrendsByLine/index/',
            'stickstockdetail'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/stickstockdetail/index/',
            'productkpi'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/ProductKPI/index/',
            'salesmaps'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/salesmaps/index/',
            'profitcompare'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/ProfitCompare/index/',
            'profitreportx'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/ProfitReportX/index/',
            'classic3'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/Classic3/index/',
            'bptrendx'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/BPtrendX/index/',
            'marketingreports'=>'http://insights.g-town.com.cn:8090/loginsy/index.php/marketingReports/index/',
            'orderaccess'=>'http://insights.g-town.com.cn:8090/dashbroad/Dashbroad.php',
	    ),
        //下载数据包模版
        //模版  style属性说明 interval:分割符 cname字段名 lenght文本长度 ,当内容未达到长度 以空格填充长度
        'DOWNLOADMODEL'=>array(
            'default'=>array('interval'=>'||','style'=>array(array('cname'=>'name','lenght'=>'100'),array('cname'=>'pic','lenght'=>'100'),array('cname'=>'price','lenght'=>'10'))),
            'zhongyin'=>array('interval'=>'-','style'=>array(array('cname'=>'name','lenght'=>'100'),array('cname'=>'brand','lenght'=>'50'),array('cname'=>'pic','lenght'=>'100'),array('cname'=>'price','lenght'=>'10'))),
            'shyinhang'=>array('interval'=>',','style'=>array(array('cname'=>'name','lenght'=>'100'),array('cname'=>'pic','lenght'=>'100'),array('cname'=>'price','lenght'=>'10')))
        ),
        'CORP_ID'     => 'wxcde60948909ece08', // 企业号CORP_ID
        'CORP_SECRECT' => 'NyLcCeHleHKqlR9XAQorFR_wkTPpAFb-Rn55CN9n6tj6Y1wD_PaL1mepuOhjwbts', // 企业号CORP_SECRECT
        
	 );
    
    require 'sapModel.php';
    return  array_merge($array,$modelconfig);
   
?>